﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Authorization.RoleModel>" %>
<%@ Import Namespace="Code.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	角色管理
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
    <%=Html.ActionLink(">>新增", "Add", null, new { @class = "a_blue" })%>
    <table class="table" width="100%">
        <tr class="th"><th>角色名称</th><th>状态</th><th>操作</th></tr>
        <% foreach (var item in Model.Roles)%>
        <% { %>
        <tr>
            <td><%=item.Name %></td>
            <td><%=item.State.GetName() %></td>
            <td><%=Html.ActionLink("编辑", "Edit", new { item.ID }, new { @class = "a_blue" })%></td>
        </tr>       
        <% } %>
    </table>
</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
</asp:Content>
